package com.hs.user.service;

import com.hs.common.api.dto.ResultVo;
import com.hs.user.bean.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hs.user.dto.BerthDto;
import com.hs.user.dto.ParkingDto;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;
import java.util.List;

/**
 * <p>
 * 用户 服务类
 * </p>
 *
 * @author Lin GongZi
 * @since 2022-07-20
 */
public interface IUserService extends IService<User> {

    ResultVo login(User user);

    ParkingDto parking(Long berthId, HttpServletRequest request) throws ParseException;

    ResultVo payParking(Long orderId);

    List<BerthDto> berthSearch(Double currentLongitude, Double currentLatitude);

    ResultVo parkingOrder(String licensePlate);

    ResultVo vehicleBinding(String licensePlate, String plateType,HttpServletRequest request);
}
